package com.example.rpinfrastructure.gateway.impl.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.rpclient.dto.query.AwardListByParamQuery;
import com.example.rpinfrastructure.gateway.impl.dataobject.AwardDB;
import org.apache.ibatis.annotations.Param;

/**
* @author 是英健啊
* @description 针对表【bld_award】的数据库操作Mapper
* @createDate 2023-07-30 16:59:27
* @Entity com.example.rpuser.po.Award
*/
public interface AwardMapper extends BaseMapper<AwardDB> {
    IPage<AwardDB> page(@Param("awardDBPage") Page<AwardDB> awardDBPage, @Param("query") AwardListByParamQuery query);

    int deductionAwardNumber(@Param("awardId") Long awardId, @Param("number") Integer number);
}




